getByClassName

public final static Element getByClassName(SearchContext $self, String className)
public final static Element getByClassName(SearchContext $self, String className)

Returns the first Element found in the current search context by the given className.

Since

8.0.0

Throws

if no element found.